package com.wgts.wgts.mvp.view.activity.homapge;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;

import com.wgts.wgts.R;
import com.wgts.wgts.mvp.view.activity.awardmore.AwardMoreActivity;
import com.wgts.wgts.mvp.view.activity.goodsinfo.JDGoodinfoActivity;
import com.wgts.wgts.mvp.view.activity.guessing.GuessingActivity;
import com.wgts.wgts.mvp.view.activity.webactivity.WebActivity;
import com.wgts.wgts.netmodle.resp.AppModleEntity;
import com.wgts.wgts.tools.MoHuGlide;
import com.zhouwei.mzbanner.holder.MZViewHolder;

import org.json.JSONException;
import org.json.JSONObject;

public class BannerViewHolder implements MZViewHolder<AppModleEntity.AppModleResult> {

    private ImageView imgBanner;

    private Intent intent;

    @Override
    public View createView(Context context) {
        View view = LayoutInflater.from(context).inflate(R.layout.banner_view_holder, null);
        imgBanner = view.findViewById(R.id.img_banner);
        return view;
    }

    @Override
    public void onBind(Context context, int i, AppModleEntity.AppModleResult appModleResult) {

        MoHuGlide.getInstance().raduice(context, appModleResult.sourceUrl, imgBanner);

    }


}
